<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<%@ include file="/commons/nocache.jspf" %>
<%@ taglib uri="/FCKeditor" prefix="FCK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http：//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http：//www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/form.dwt" codeOutsideHTMLIsLocked="true" -->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<script type="text/javascript" src="${ctx}/scripts/datepicker/wpCalendar.js"></script>
<!-- InstanceBeginEditable name="doctitle" -->
<title>提案管理</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="scripts" -->
<script type="text/javascript">
	function deleteIt(id, page) {
	  if(window.confirm('确定要删除吗?')) {
	  	window.location = "${ctx }/proposal/proposal!delete.action?proposal.proposalId="+id+"&flipPageInfo.page="+page;
	  }  
	}		
	function list(){
		document.pageform.submit();
	}
	function outExcel(){
		document.searchform.action="${ctx}/proposal/proposal!outExcel.action";
		document.searchform.submit();
	}
	function search(){
		document.searchform.action="${ctx}/proposal/proposal!group.action";
		document.searchform.submit();
	}
	function modifyIt(id){
		document.getElementById("proposalId").value = id;
		document.modifyform.action="${ctx}/proposal/proposal!modifyPre.action";
		document.modifyform.submit();
	}
	function detailIt(id){
		document.getElementById("proposalId").value = id;
		document.modifyform.action="${ctx}/proposal/proposal!detail.action";
		document.modifyform.submit();
	}
	function agreeIt(id){
	/**
		$.ajax({

			url 	 : '${ctx}/proposal/proposal!agree.action?proposal.proposalId='+id,
			dataType : 'json',
			success  : function(json){
					alert("支持成功");
			},
			error	 : function(){
			}
		});
		*/
		window.location = '${ctx}/proposal/proposal!agree.action?proposal.proposalId='+id;
	}
	function detailUnionUserName(name){
		alert(name);
	}
</script>
<!-- InstanceEndEditable -->
</head>

<body>

<div id="main">
	<div class="zdsz" id="select1">
		<div class="tab">

<!-- InstanceBeginEditable name="tab" -->
<a href="${ctx}/proposal/proposal!group.action"><h3 <c:if test="${type == null}">class="sel"</c:if>>立案数统计</h3></a>
<a href="${ctx}/proposal/proposal!group.action?type=1"><h3 <c:if test="${type == 1}">class="sel"</c:if>>集体提案统计</h3></a>
<a href="${ctx}/proposal/proposal!group.action?type=2"><h3 <c:if test="${type == 2}">class="sel"</c:if>>界别提案统计</h3></a>
<a href="${ctx}/proposal/proposal!group.action?type=3"><h3 <c:if test="${type == 3}">class="sel"</c:if>>分类统计（ABC）</h3></a>
<a href="${ctx}/proposal/proposal!group.action?type=4"><h3 <c:if test="${type == 4}">class="sel"</c:if>>办理结果满意度统计</h3></a>
<a href="${ctx}/proposal/proposal!group.action?type=5"><h3 <c:if test="${type == 5}">class="sel"</c:if>>审查意见统计</h3></a>
<a href="${ctx}/proposal/proposal!group.action?type=6"><h3 <c:if test="${type == 6}">class="sel"</c:if>>立案类型统计</h3></a>
<a href="${ctx}/proposal/proposal!group.action?type=7"><h3 <c:if test="${type == 7}">class="sel"</c:if>>提案进展统计</h3></a>

<!-- InstanceEndEditable -->
		</div>
		<div class="zd_gut">
			<ul class="block">
				<li>
		
<!-- InstanceBeginEditable name="form" -->
<form action="${ctx}/proposal/proposal!group.action" method="post" name="searchform">
	<div class="zc_but2">	
		届:
        <input name="s_proposalSession" type="text" size="5" maxLength="20" value="${s_proposalSession}"/>
         次:
        <input name="s_proposalCount" type="text" size="5" maxLength="20" value="${s_proposalCount}"/>
        <input name="button"  type="button" onclick="search();" class="log_f zc_b" value="查询"/>
    </div>
</form>
<div id="ErrorName"  align="center"></div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tab_1 center">
	<c:if test="${type == null}">
		<tr>
		  <td class="bg4">委员提案数</td>
		  <td class="bg4">立案数</td>		 
		  <td class="bg4">未立案数</td>
		</tr>
		<tr>
			<td>${list[0]}</td>	
			<td>${list[1]} 比例[${list[2]}]</td>	
			<td>${list[3]} 比例[${list[4]}]</td>	
		</tr>
	</c:if>
	<c:if test="${type == 1}">
		<tr>
		  <td class="bg4">委员提案数</td>
		  <td class="bg4">联名提案数</td>		 
		  <td class="bg4">非联名提案</td>
		</tr>
		<tr>
			<td>${list[0]}</td>	
			<td>${list[1]} 比例[${list[2]}]</td>	
			<td>${list[3]} 比例[${list[4]}]</td>	
		</tr>
	</c:if>
	<c:if test="${type == 2}">
		<s:iterator value="List" status="data" id="d">
			<s:if test="#data.index == 0">
				<tr>
					<td class="bg4">总数</td>
					<td>${List[data.index ]}</td>	
				<tr>
			</s:if>
			<s:else>
				<tr>
					<td class="bg4">${List[data.index ][0]}</td>
					<td>${List[data.index ][1]} 比例[${List[data.index ][2]}]</td>	
				<tr>
			</s:else>
		</s:iterator>
	</c:if>
	<c:if test="${type == 3 || type == 4 || type == 5 || type == 6 || type == 7}">
		<tr>
			<td>总数</td>	
			<s:iterator value="List" status="data" id="d">
				<s:if test="#data.index != 0">
					<td class="bg4">${List[data.index ][0]}</td>
				</s:if>
			</s:iterator>
		</tr>
		<tr>
			<s:iterator value="List" status="data" id="d">
				<s:if test="#data.index == 0">
					<td>${List[data.index ]}</td>
				</s:if>
				<s:if test="#data.index != 0">
					<td>${List[data.index ][1]} 比例[${List[data.index ][2]}]</td>	
				</s:if>
			</s:iterator>
		</tr>
	</c:if>
</table> 

</li>
		</ul>
	  </div>
	</div>
</div>
</body>
<!-- InstanceEnd --></html>
